package wms.service.user;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import wms.dao.user.FunctionMapper;
import wms.entity.Function;

@Service
public class FuncServiceImpl implements FunctionService {
	
	@Resource
	private FunctionMapper functionMapper;
	
	@Override
	public List<Function> listMainFunction(Integer roleId) {
		return functionMapper.listMainFunction(roleId);
	}

	@Override
	public List<Function> listSonFunction(Function function) {
		return functionMapper.listSonFunction(function);
	}

}
